package com.it.schoolbookshop_back.entities.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单详情视图对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderDetailVO {
    
    /**
     * 书籍列表
     */
    private List<BookDetail> book;
    
    /**
     * 书籍详情
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class BookDetail {
        /**
         * 书名
         */
        private String title;
        
        /**
         * 作者
         */
        private String author;
        
        /**
         * 书的价格
         */
        private BigDecimal price;
        
        /**
         * 卖家姓名
         */
        private String seller;
        
        /**
         * 卖家院系
         */
        private String department;
    }
} 